import 'package:flutter/material.dart';
import 'package:schoollifedemo/commonwidget/common_base_widget.dart';

class LoadingWidget extends BaseStatelessWidget {
  final Color backgroundColor;
  final double? width;
  final double? height;

  const LoadingWidget({
    Key? key,
    this.backgroundColor = Colors.white,
    this.height,
    this.width,
  }) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Container(
        width: width,
        height: height,
        color: backgroundColor,
        child: const Center(
          child: CircularProgressIndicator(),
        ),
      ),
    );
  }
}
